package com.mjkj.controller;

import com.mjkj.apis.AlibabaPayFeignApi;
import com.mjkj.core.result.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Tag(name = "consumerController", description = "消费者控制器")
public class consumerController {

    @Resource
    private AlibabaPayFeignApi alibabaPayFeignApi;

    @Operation(summary = "测试方法")
    @GetMapping("/consumer/test/{id}")
    public Result test(@PathVariable(value = "id") Long id) {
        return alibabaPayFeignApi.getPaymentById(id);
    }
}
